<template>
  <div id="app">
    <!-- 需要缓存的组件，将来会配置到keep-alive中显示 -->
    <keep-alive>
      <router-view v-if="$route.meta.isKeepAlive"></router-view>
    </keep-alive>

    <!-- 其他组件，应该在keep-alive的外面，应该正常显示 -->
    <router-view v-if="!$route.meta.isKeepAlive"></router-view>
  </div>
</template>

<script>
export default {

}
</script>

<style lang="scss">

</style>
